﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Windows.Forms;
using C1.Win.C1Input;
using C1.Win.C1List;
using C1.Win.C1TrueDBGrid;
using PCSComPayroll.BO;
using PCSComPayroll.DS;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Log;
using PCSUtils.Utils;
using AddNewModeEnum = C1.Win.C1TrueDBGrid.AddNewModeEnum;
using AlignHorzEnum = C1.Win.C1TrueDBGrid.AlignHorzEnum;
using C1DisplayColumn = C1.Win.C1TrueDBGrid.C1DisplayColumn;

namespace PCSPayroll.Payroll
{
	/// <summary>
	/// Summary description for TransportationFee.
	/// </summary>
	public class AdditionSalary : Form
	{
		#region Windows Control

		private Button btnPrint;
		private Label lblCCN;
		private Button btnClose;
		private Button btnHelp;
		private Button btnSave;
		private Button btnAdd;
		private C1Combo cboCCN;
		private Label lblTransNo;
		private Label lblPostDate;
		#endregion

		/// <summary>
		/// Required designer variable.
		/// </summary>
		
		private Container components = null;

		#region My Variables
		public const string THIS = "PCSPayroll.Payroll.AdditionSalary";
		private const string PRODUCT_VIEW = "v_ProductForSalary";
		private C1TrueDBGrid dgrdData;
		private Button btnDelete;
		private Button btnEdit;
		private System.Windows.Forms.TextBox txtTransNo;
		private System.Windows.Forms.Button btnTransNo;
		private System.Windows.Forms.Label lblFGoodsCode;
		private System.Windows.Forms.Label lblProductionLine;
		private System.Windows.Forms.TextBox txtFGoodsCode;
		private System.Windows.Forms.Button btnFGoodsCode;
		private System.Windows.Forms.TextBox txtProductionLine;
		private System.Windows.Forms.Button btnProductionLine;
		private C1DateEdit dtmPostDate;
		private C1.Win.C1Input.C1DateEdit dtmRequestDate;
		EnumAction mFormMode = EnumAction.Default;
		private DataTable dtbGridLayOut;
		private DataSet dstData;
		private AdditionSalaryBO boAddition = new AdditionSalaryBO();
		private UtilsBO boUtils = new UtilsBO();
		bool blnIsCompleted = false;
		bool blnIsApproved = false;
		private System.Windows.Forms.Button btnApproved;
		DataTable dtbEstimateData = new DataTable();

		#endregion

		public AdditionSalary()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AdditionSalary));
			this.txtTransNo = new System.Windows.Forms.TextBox();
			this.btnPrint = new System.Windows.Forms.Button();
			this.btnTransNo = new System.Windows.Forms.Button();
			this.lblCCN = new System.Windows.Forms.Label();
			this.lblTransNo = new System.Windows.Forms.Label();
			this.lblPostDate = new System.Windows.Forms.Label();
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.dtmPostDate = new C1.Win.C1Input.C1DateEdit();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.cboCCN = new C1.Win.C1List.C1Combo();
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnEdit = new System.Windows.Forms.Button();
			this.lblFGoodsCode = new System.Windows.Forms.Label();
			this.lblProductionLine = new System.Windows.Forms.Label();
			this.txtFGoodsCode = new System.Windows.Forms.TextBox();
			this.btnFGoodsCode = new System.Windows.Forms.Button();
			this.txtProductionLine = new System.Windows.Forms.TextBox();
			this.btnProductionLine = new System.Windows.Forms.Button();
			this.dtmRequestDate = new C1.Win.C1Input.C1DateEdit();
			this.btnApproved = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmPostDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmRequestDate)).BeginInit();
			this.SuspendLayout();
			// 
			// txtTransNo
			// 
			this.txtTransNo.AccessibleDescription = resources.GetString("txtTransNo.AccessibleDescription");
			this.txtTransNo.AccessibleName = resources.GetString("txtTransNo.AccessibleName");
			this.txtTransNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtTransNo.Anchor")));
			this.txtTransNo.AutoSize = ((bool)(resources.GetObject("txtTransNo.AutoSize")));
			this.txtTransNo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtTransNo.BackgroundImage")));
			this.txtTransNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtTransNo.Dock")));
			this.txtTransNo.Enabled = ((bool)(resources.GetObject("txtTransNo.Enabled")));
			this.txtTransNo.Font = ((System.Drawing.Font)(resources.GetObject("txtTransNo.Font")));
			this.txtTransNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtTransNo.ImeMode")));
			this.txtTransNo.Location = ((System.Drawing.Point)(resources.GetObject("txtTransNo.Location")));
			this.txtTransNo.MaxLength = ((int)(resources.GetObject("txtTransNo.MaxLength")));
			this.txtTransNo.Multiline = ((bool)(resources.GetObject("txtTransNo.Multiline")));
			this.txtTransNo.Name = "txtTransNo";
			this.txtTransNo.PasswordChar = ((char)(resources.GetObject("txtTransNo.PasswordChar")));
			this.txtTransNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtTransNo.RightToLeft")));
			this.txtTransNo.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtTransNo.ScrollBars")));
			this.txtTransNo.Size = ((System.Drawing.Size)(resources.GetObject("txtTransNo.Size")));
			this.txtTransNo.TabIndex = ((int)(resources.GetObject("txtTransNo.TabIndex")));
			this.txtTransNo.Text = resources.GetString("txtTransNo.Text");
			this.txtTransNo.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtTransNo.TextAlign")));
			this.txtTransNo.Visible = ((bool)(resources.GetObject("txtTransNo.Visible")));
			this.txtTransNo.WordWrap = ((bool)(resources.GetObject("txtTransNo.WordWrap")));
			this.txtTransNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtTransNo_KeyDown);
			this.txtTransNo.Validating += new System.ComponentModel.CancelEventHandler(this.txtTransNo_Validating);
			// 
			// btnPrint
			// 
			this.btnPrint.AccessibleDescription = resources.GetString("btnPrint.AccessibleDescription");
			this.btnPrint.AccessibleName = resources.GetString("btnPrint.AccessibleName");
			this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPrint.Anchor")));
			this.btnPrint.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPrint.BackgroundImage")));
			this.btnPrint.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPrint.Dock")));
			this.btnPrint.Enabled = ((bool)(resources.GetObject("btnPrint.Enabled")));
			this.btnPrint.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPrint.FlatStyle")));
			this.btnPrint.Font = ((System.Drawing.Font)(resources.GetObject("btnPrint.Font")));
			this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
			this.btnPrint.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.ImageAlign")));
			this.btnPrint.ImageIndex = ((int)(resources.GetObject("btnPrint.ImageIndex")));
			this.btnPrint.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPrint.ImeMode")));
			this.btnPrint.Location = ((System.Drawing.Point)(resources.GetObject("btnPrint.Location")));
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPrint.RightToLeft")));
			this.btnPrint.Size = ((System.Drawing.Size)(resources.GetObject("btnPrint.Size")));
			this.btnPrint.TabIndex = ((int)(resources.GetObject("btnPrint.TabIndex")));
			this.btnPrint.Text = resources.GetString("btnPrint.Text");
			this.btnPrint.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.TextAlign")));
			this.btnPrint.Visible = ((bool)(resources.GetObject("btnPrint.Visible")));
			this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
			// 
			// btnTransNo
			// 
			this.btnTransNo.AccessibleDescription = resources.GetString("btnTransNo.AccessibleDescription");
			this.btnTransNo.AccessibleName = resources.GetString("btnTransNo.AccessibleName");
			this.btnTransNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnTransNo.Anchor")));
			this.btnTransNo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnTransNo.BackgroundImage")));
			this.btnTransNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnTransNo.Dock")));
			this.btnTransNo.Enabled = ((bool)(resources.GetObject("btnTransNo.Enabled")));
			this.btnTransNo.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnTransNo.FlatStyle")));
			this.btnTransNo.Font = ((System.Drawing.Font)(resources.GetObject("btnTransNo.Font")));
			this.btnTransNo.Image = ((System.Drawing.Image)(resources.GetObject("btnTransNo.Image")));
			this.btnTransNo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnTransNo.ImageAlign")));
			this.btnTransNo.ImageIndex = ((int)(resources.GetObject("btnTransNo.ImageIndex")));
			this.btnTransNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnTransNo.ImeMode")));
			this.btnTransNo.Location = ((System.Drawing.Point)(resources.GetObject("btnTransNo.Location")));
			this.btnTransNo.Name = "btnTransNo";
			this.btnTransNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnTransNo.RightToLeft")));
			this.btnTransNo.Size = ((System.Drawing.Size)(resources.GetObject("btnTransNo.Size")));
			this.btnTransNo.TabIndex = ((int)(resources.GetObject("btnTransNo.TabIndex")));
			this.btnTransNo.Text = resources.GetString("btnTransNo.Text");
			this.btnTransNo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnTransNo.TextAlign")));
			this.btnTransNo.Visible = ((bool)(resources.GetObject("btnTransNo.Visible")));
			this.btnTransNo.Click += new System.EventHandler(this.btnTransNo_Click);
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// lblTransNo
			// 
			this.lblTransNo.AccessibleDescription = resources.GetString("lblTransNo.AccessibleDescription");
			this.lblTransNo.AccessibleName = resources.GetString("lblTransNo.AccessibleName");
			this.lblTransNo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblTransNo.Anchor")));
			this.lblTransNo.AutoSize = ((bool)(resources.GetObject("lblTransNo.AutoSize")));
			this.lblTransNo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblTransNo.Dock")));
			this.lblTransNo.Enabled = ((bool)(resources.GetObject("lblTransNo.Enabled")));
			this.lblTransNo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblTransNo.Font = ((System.Drawing.Font)(resources.GetObject("lblTransNo.Font")));
			this.lblTransNo.ForeColor = System.Drawing.Color.Maroon;
			this.lblTransNo.Image = ((System.Drawing.Image)(resources.GetObject("lblTransNo.Image")));
			this.lblTransNo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTransNo.ImageAlign")));
			this.lblTransNo.ImageIndex = ((int)(resources.GetObject("lblTransNo.ImageIndex")));
			this.lblTransNo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblTransNo.ImeMode")));
			this.lblTransNo.Location = ((System.Drawing.Point)(resources.GetObject("lblTransNo.Location")));
			this.lblTransNo.Name = "lblTransNo";
			this.lblTransNo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblTransNo.RightToLeft")));
			this.lblTransNo.Size = ((System.Drawing.Size)(resources.GetObject("lblTransNo.Size")));
			this.lblTransNo.TabIndex = ((int)(resources.GetObject("lblTransNo.TabIndex")));
			this.lblTransNo.Text = resources.GetString("lblTransNo.Text");
			this.lblTransNo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblTransNo.TextAlign")));
			this.lblTransNo.Visible = ((bool)(resources.GetObject("lblTransNo.Visible")));
			// 
			// lblPostDate
			// 
			this.lblPostDate.AccessibleDescription = resources.GetString("lblPostDate.AccessibleDescription");
			this.lblPostDate.AccessibleName = resources.GetString("lblPostDate.AccessibleName");
			this.lblPostDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPostDate.Anchor")));
			this.lblPostDate.AutoSize = ((bool)(resources.GetObject("lblPostDate.AutoSize")));
			this.lblPostDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPostDate.Dock")));
			this.lblPostDate.Enabled = ((bool)(resources.GetObject("lblPostDate.Enabled")));
			this.lblPostDate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblPostDate.Font = ((System.Drawing.Font)(resources.GetObject("lblPostDate.Font")));
			this.lblPostDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblPostDate.Image = ((System.Drawing.Image)(resources.GetObject("lblPostDate.Image")));
			this.lblPostDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPostDate.ImageAlign")));
			this.lblPostDate.ImageIndex = ((int)(resources.GetObject("lblPostDate.ImageIndex")));
			this.lblPostDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPostDate.ImeMode")));
			this.lblPostDate.Location = ((System.Drawing.Point)(resources.GetObject("lblPostDate.Location")));
			this.lblPostDate.Name = "lblPostDate";
			this.lblPostDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPostDate.RightToLeft")));
			this.lblPostDate.Size = ((System.Drawing.Size)(resources.GetObject("lblPostDate.Size")));
			this.lblPostDate.TabIndex = ((int)(resources.GetObject("lblPostDate.TabIndex")));
			this.lblPostDate.Text = resources.GetString("lblPostDate.Text");
			this.lblPostDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPostDate.TextAlign")));
			this.lblPostDate.Visible = ((bool)(resources.GetObject("lblPostDate.Visible")));
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.AfterDelete += new System.EventHandler(this.dgrdData_AfterDelete);
			this.dgrdData.RowColChange += new C1.Win.C1TrueDBGrid.RowColChangeEventHandler(this.dgrdData_RowColChange);
			this.dgrdData.ButtonClick += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_ButtonClick);
			this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate);
			this.dgrdData.BeforeColUpdate += new C1.Win.C1TrueDBGrid.BeforeColUpdateEventHandler(this.dgrdData_BeforeColUpdate);
			this.dgrdData.BeforeDelete += new C1.Win.C1TrueDBGrid.CancelEventHandler(this.dgrdData_BeforeDelete);
			this.dgrdData.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgrdData_KeyDown);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// dtmPostDate
			// 
			this.dtmPostDate.AcceptsEscape = ((bool)(resources.GetObject("dtmPostDate.AcceptsEscape")));
			this.dtmPostDate.AccessibleDescription = resources.GetString("dtmPostDate.AccessibleDescription");
			this.dtmPostDate.AccessibleName = resources.GetString("dtmPostDate.AccessibleName");
			this.dtmPostDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmPostDate.Anchor")));
			this.dtmPostDate.AutoSize = ((bool)(resources.GetObject("dtmPostDate.AutoSize")));
			this.dtmPostDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmPostDate.BackgroundImage")));
			this.dtmPostDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmPostDate.BorderStyle")));
			// 
			// dtmPostDate.Calendar
			// 
			this.dtmPostDate.Calendar.AccessibleDescription = resources.GetString("dtmPostDate.Calendar.AccessibleDescription");
			this.dtmPostDate.Calendar.AccessibleName = resources.GetString("dtmPostDate.Calendar.AccessibleName");
			this.dtmPostDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmPostDate.Calendar.AnnuallyBoldedDates")));
			this.dtmPostDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmPostDate.Calendar.BackgroundImage")));
			this.dtmPostDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmPostDate.Calendar.BoldedDates")));
			this.dtmPostDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmPostDate.Calendar.CalendarDimensions")));
			this.dtmPostDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmPostDate.Calendar.Enabled")));
			this.dtmPostDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmPostDate.Calendar.FirstDayOfWeek")));
			this.dtmPostDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmPostDate.Calendar.Font")));
			this.dtmPostDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmPostDate.Calendar.ImeMode")));
			this.dtmPostDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmPostDate.Calendar.MonthlyBoldedDates")));
			this.dtmPostDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmPostDate.Calendar.RightToLeft")));
			this.dtmPostDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmPostDate.Calendar.ShowClearButton")));
			this.dtmPostDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmPostDate.Calendar.ShowTodayButton")));
			this.dtmPostDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmPostDate.Calendar.ShowWeekNumbers")));
			this.dtmPostDate.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.CaseSensitive")));
			this.dtmPostDate.Culture = ((int)(resources.GetObject("dtmPostDate.Culture")));
			this.dtmPostDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmPostDate.CurrentTimeZone")));
			this.dtmPostDate.CustomFormat = resources.GetString("dtmPostDate.CustomFormat");
			this.dtmPostDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmPostDate.DaylightTimeAdjustment")));
			this.dtmPostDate.DisplayFormat.CustomFormat = resources.GetString("dtmPostDate.DisplayFormat.CustomFormat");
			this.dtmPostDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.DisplayFormat.FormatType")));
			this.dtmPostDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmPostDate.DisplayFormat.Inherit")));
			this.dtmPostDate.DisplayFormat.NullText = resources.GetString("dtmPostDate.DisplayFormat.NullText");
			this.dtmPostDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.DisplayFormat.TrimEnd")));
			this.dtmPostDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmPostDate.DisplayFormat.TrimStart")));
			this.dtmPostDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmPostDate.Dock")));
			this.dtmPostDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmPostDate.DropDownFormAlign")));
			this.dtmPostDate.EditFormat.CustomFormat = resources.GetString("dtmPostDate.EditFormat.CustomFormat");
			this.dtmPostDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.EditFormat.FormatType")));
			this.dtmPostDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmPostDate.EditFormat.Inherit")));
			this.dtmPostDate.EditFormat.NullText = resources.GetString("dtmPostDate.EditFormat.NullText");
			this.dtmPostDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.EditFormat.TrimEnd")));
			this.dtmPostDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmPostDate.EditFormat.TrimStart")));
			this.dtmPostDate.EditMask = resources.GetString("dtmPostDate.EditMask");
			this.dtmPostDate.EmptyAsNull = ((bool)(resources.GetObject("dtmPostDate.EmptyAsNull")));
			this.dtmPostDate.Enabled = ((bool)(resources.GetObject("dtmPostDate.Enabled")));
			this.dtmPostDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmPostDate.ErrorInfo.BeepOnError")));
			this.dtmPostDate.ErrorInfo.ErrorMessage = resources.GetString("dtmPostDate.ErrorInfo.ErrorMessage");
			this.dtmPostDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmPostDate.ErrorInfo.ErrorMessageCaption");
			this.dtmPostDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmPostDate.ErrorInfo.ShowErrorMessage")));
			this.dtmPostDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmPostDate.ErrorInfo.ValueOnError")));
			this.dtmPostDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmPostDate.Font")));
			this.dtmPostDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.FormatType")));
			this.dtmPostDate.GapHeight = ((int)(resources.GetObject("dtmPostDate.GapHeight")));
			this.dtmPostDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmPostDate.GMTOffset")));
			this.dtmPostDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmPostDate.ImeMode")));
			this.dtmPostDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmPostDate.InitialSelection")));
			this.dtmPostDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmPostDate.Location")));
			this.dtmPostDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmPostDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.CaseSensitive")));
			this.dtmPostDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.CopyWithLiterals")));
			this.dtmPostDate.MaskInfo.EditMask = resources.GetString("dtmPostDate.MaskInfo.EditMask");
			this.dtmPostDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmPostDate.MaskInfo.EmptyAsNull")));
			this.dtmPostDate.MaskInfo.ErrorMessage = resources.GetString("dtmPostDate.MaskInfo.ErrorMessage");
			this.dtmPostDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmPostDate.MaskInfo.Inherit")));
			this.dtmPostDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmPostDate.MaskInfo.PromptChar")));
			this.dtmPostDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmPostDate.MaskInfo.ShowLiterals")));
			this.dtmPostDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmPostDate.MaskInfo.StoredEmptyChar")));
			this.dtmPostDate.MaxLength = ((int)(resources.GetObject("dtmPostDate.MaxLength")));
			this.dtmPostDate.Name = "dtmPostDate";
			this.dtmPostDate.NullText = resources.GetString("dtmPostDate.NullText");
			this.dtmPostDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.CaseSensitive")));
			this.dtmPostDate.ParseInfo.CustomFormat = resources.GetString("dtmPostDate.ParseInfo.CustomFormat");
			this.dtmPostDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmPostDate.ParseInfo.DateTimeStyle")));
			this.dtmPostDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.EmptyAsNull")));
			this.dtmPostDate.ParseInfo.ErrorMessage = resources.GetString("dtmPostDate.ParseInfo.ErrorMessage");
			this.dtmPostDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmPostDate.ParseInfo.FormatType")));
			this.dtmPostDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmPostDate.ParseInfo.Inherit")));
			this.dtmPostDate.ParseInfo.NullText = resources.GetString("dtmPostDate.ParseInfo.NullText");
			this.dtmPostDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.TrimEnd")));
			this.dtmPostDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmPostDate.ParseInfo.TrimStart")));
			this.dtmPostDate.PasswordChar = ((char)(resources.GetObject("dtmPostDate.PasswordChar")));
			this.dtmPostDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.PostValidation.CaseSensitive")));
			this.dtmPostDate.PostValidation.ErrorMessage = resources.GetString("dtmPostDate.PostValidation.ErrorMessage");
			this.dtmPostDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmPostDate.PostValidation.Inherit")));
			this.dtmPostDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmPostDate.PostValidation.Validation")));
			this.dtmPostDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmPostDate.PostValidation.Values")));
			this.dtmPostDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmPostDate.PostValidation.ValuesExcluded")));
			this.dtmPostDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmPostDate.PreValidation.CaseSensitive")));
			this.dtmPostDate.PreValidation.ErrorMessage = resources.GetString("dtmPostDate.PreValidation.ErrorMessage");
			this.dtmPostDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmPostDate.PreValidation.Inherit")));
			this.dtmPostDate.PreValidation.ItemSeparator = resources.GetString("dtmPostDate.PreValidation.ItemSeparator");
			this.dtmPostDate.PreValidation.PatternString = resources.GetString("dtmPostDate.PreValidation.PatternString");
			this.dtmPostDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmPostDate.PreValidation.RegexOptions")));
			this.dtmPostDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.PreValidation.TrimEnd")));
			this.dtmPostDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmPostDate.PreValidation.TrimStart")));
			this.dtmPostDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmPostDate.PreValidation.Validation")));
			this.dtmPostDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmPostDate.RightToLeft")));
			this.dtmPostDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmPostDate.ShowFocusRectangle")));
			this.dtmPostDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmPostDate.Size")));
			this.dtmPostDate.TabIndex = ((int)(resources.GetObject("dtmPostDate.TabIndex")));
			this.dtmPostDate.Tag = ((object)(resources.GetObject("dtmPostDate.Tag")));
			this.dtmPostDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmPostDate.TextAlign")));
			this.dtmPostDate.TrimEnd = ((bool)(resources.GetObject("dtmPostDate.TrimEnd")));
			this.dtmPostDate.TrimStart = ((bool)(resources.GetObject("dtmPostDate.TrimStart")));
			this.dtmPostDate.UserCultureOverride = ((bool)(resources.GetObject("dtmPostDate.UserCultureOverride")));
			this.dtmPostDate.Value = ((object)(resources.GetObject("dtmPostDate.Value")));
			this.dtmPostDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmPostDate.VerticalAlign")));
			this.dtmPostDate.Visible = ((bool)(resources.GetObject("dtmPostDate.Visible")));
			this.dtmPostDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmPostDate.VisibleButtons")));
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
			this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
			this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
			this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
			this.btnAdd.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
			this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
			this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
			this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
			this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
			this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
			this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
			this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
			this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
			this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
			this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
			this.btnAdd.Text = resources.GetString("btnAdd.Text");
			this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
			this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// cboCCN
			// 
			this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
			this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
			this.cboCCN.AddItemSeparator = ';';
			this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
			this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
			this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
			this.cboCCN.Caption = "";
			this.cboCCN.CaptionHeight = 17;
			this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
			this.cboCCN.ColumnCaptionHeight = 17;
			this.cboCCN.ColumnFooterHeight = 17;
			this.cboCCN.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList;
			this.cboCCN.ContentHeight = 15;
			this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
			this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
			this.cboCCN.DropDownWidth = 200;
			this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
			this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
			this.cboCCN.EditorHeight = 15;
			this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
			this.cboCCN.FlatStyle = C1.Win.C1List.FlatModeEnum.System;
			this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
			this.cboCCN.GapHeight = 2;
			this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
			this.cboCCN.ItemHeight = 15;
			this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
			this.cboCCN.MatchEntryTimeout = ((long)(2000));
			this.cboCCN.MaxDropDownItems = ((short)(5));
			this.cboCCN.MaxLength = 32767;
			this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
			this.cboCCN.Name = "cboCCN";
			this.cboCCN.PartialRightColumn = false;
			this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
			this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
			this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
			this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
			this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
			this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
			this.cboCCN.Text = resources.GetString("cboCCN.Text");
			this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
			this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
				"ta>Group{AlignVert:Center;Border:None,,0, 0, 0, 0;BackColor:ControlDark;}Style2{" +
				"}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
				"lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
				"ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{BackColor:Wind" +
				"ow;}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style1{}OddRow{}Re" +
				"cordSelector{AlignImage:Center;}Heading{Wrap:True;BackColor:Control;Border:Raise" +
				"d,,1, 1, 1, 1;ForeColor:ControlText;AlignVert:Center;}Style8{}Style10{}Style11{}" +
				"Style9{AlignHorz:Near;}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowC" +
				"olSelect=\"False\" Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFoote" +
				"rHeight=\"17\" VerticalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0," +
				" 116, 156</ClientRect><VScrollBar><Width>16</Width></VScrollBar><HScrollBar><Hei" +
				"ght>16</Height></HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRow" +
				"Style parent=\"EvenRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" />" +
				"<GroupStyle parent=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Sty" +
				"le2\" /><HighLightRowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle par" +
				"ent=\"Inactive\" me=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordS" +
				"electorStyle parent=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selec" +
				"ted\" me=\"Style5\" /><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxV" +
				"iew></Splits><NamedStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" " +
				"me=\"Heading\" /><Style parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=" +
				"\"Caption\" /><Style parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"S" +
				"elected\" /><Style parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=" +
				"\"EvenRow\" /><Style parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"Rec" +
				"ordSelector\" /><Style parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1<" +
				"/vertSplits><horzSplits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWid" +
				"th>16</DefaultRecSelWidth></Blob>";
			// 
			// btnDelete
			// 
			this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
			this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
			this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
			this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
			this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
			this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
			this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
			this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
			this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
			this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
			this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
			this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
			this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
			this.btnDelete.Text = resources.GetString("btnDelete.Text");
			this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
			this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// btnEdit
			// 
			this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
			this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
			this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
			this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
			this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
			this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
			this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
			this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
			this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
			this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
			this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
			this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
			this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
			this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
			this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
			this.btnEdit.Text = resources.GetString("btnEdit.Text");
			this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
			this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// lblFGoodsCode
			// 
			this.lblFGoodsCode.AccessibleDescription = resources.GetString("lblFGoodsCode.AccessibleDescription");
			this.lblFGoodsCode.AccessibleName = resources.GetString("lblFGoodsCode.AccessibleName");
			this.lblFGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFGoodsCode.Anchor")));
			this.lblFGoodsCode.AutoSize = ((bool)(resources.GetObject("lblFGoodsCode.AutoSize")));
			this.lblFGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFGoodsCode.Dock")));
			this.lblFGoodsCode.Enabled = ((bool)(resources.GetObject("lblFGoodsCode.Enabled")));
			this.lblFGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("lblFGoodsCode.Font")));
			this.lblFGoodsCode.ForeColor = System.Drawing.Color.Maroon;
			this.lblFGoodsCode.Image = ((System.Drawing.Image)(resources.GetObject("lblFGoodsCode.Image")));
			this.lblFGoodsCode.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFGoodsCode.ImageAlign")));
			this.lblFGoodsCode.ImageIndex = ((int)(resources.GetObject("lblFGoodsCode.ImageIndex")));
			this.lblFGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFGoodsCode.ImeMode")));
			this.lblFGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("lblFGoodsCode.Location")));
			this.lblFGoodsCode.Name = "lblFGoodsCode";
			this.lblFGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFGoodsCode.RightToLeft")));
			this.lblFGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("lblFGoodsCode.Size")));
			this.lblFGoodsCode.TabIndex = ((int)(resources.GetObject("lblFGoodsCode.TabIndex")));
			this.lblFGoodsCode.Text = resources.GetString("lblFGoodsCode.Text");
			this.lblFGoodsCode.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFGoodsCode.TextAlign")));
			this.lblFGoodsCode.Visible = ((bool)(resources.GetObject("lblFGoodsCode.Visible")));
			// 
			// lblProductionLine
			// 
			this.lblProductionLine.AccessibleDescription = resources.GetString("lblProductionLine.AccessibleDescription");
			this.lblProductionLine.AccessibleName = resources.GetString("lblProductionLine.AccessibleName");
			this.lblProductionLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblProductionLine.Anchor")));
			this.lblProductionLine.AutoSize = ((bool)(resources.GetObject("lblProductionLine.AutoSize")));
			this.lblProductionLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblProductionLine.Dock")));
			this.lblProductionLine.Enabled = ((bool)(resources.GetObject("lblProductionLine.Enabled")));
			this.lblProductionLine.Font = ((System.Drawing.Font)(resources.GetObject("lblProductionLine.Font")));
			this.lblProductionLine.ForeColor = System.Drawing.Color.Maroon;
			this.lblProductionLine.Image = ((System.Drawing.Image)(resources.GetObject("lblProductionLine.Image")));
			this.lblProductionLine.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblProductionLine.ImageAlign")));
			this.lblProductionLine.ImageIndex = ((int)(resources.GetObject("lblProductionLine.ImageIndex")));
			this.lblProductionLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblProductionLine.ImeMode")));
			this.lblProductionLine.Location = ((System.Drawing.Point)(resources.GetObject("lblProductionLine.Location")));
			this.lblProductionLine.Name = "lblProductionLine";
			this.lblProductionLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblProductionLine.RightToLeft")));
			this.lblProductionLine.Size = ((System.Drawing.Size)(resources.GetObject("lblProductionLine.Size")));
			this.lblProductionLine.TabIndex = ((int)(resources.GetObject("lblProductionLine.TabIndex")));
			this.lblProductionLine.Text = resources.GetString("lblProductionLine.Text");
			this.lblProductionLine.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblProductionLine.TextAlign")));
			this.lblProductionLine.Visible = ((bool)(resources.GetObject("lblProductionLine.Visible")));
			// 
			// txtFGoodsCode
			// 
			this.txtFGoodsCode.AccessibleDescription = resources.GetString("txtFGoodsCode.AccessibleDescription");
			this.txtFGoodsCode.AccessibleName = resources.GetString("txtFGoodsCode.AccessibleName");
			this.txtFGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtFGoodsCode.Anchor")));
			this.txtFGoodsCode.AutoSize = ((bool)(resources.GetObject("txtFGoodsCode.AutoSize")));
			this.txtFGoodsCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtFGoodsCode.BackgroundImage")));
			this.txtFGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtFGoodsCode.Dock")));
			this.txtFGoodsCode.Enabled = ((bool)(resources.GetObject("txtFGoodsCode.Enabled")));
			this.txtFGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("txtFGoodsCode.Font")));
			this.txtFGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtFGoodsCode.ImeMode")));
			this.txtFGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("txtFGoodsCode.Location")));
			this.txtFGoodsCode.MaxLength = ((int)(resources.GetObject("txtFGoodsCode.MaxLength")));
			this.txtFGoodsCode.Multiline = ((bool)(resources.GetObject("txtFGoodsCode.Multiline")));
			this.txtFGoodsCode.Name = "txtFGoodsCode";
			this.txtFGoodsCode.PasswordChar = ((char)(resources.GetObject("txtFGoodsCode.PasswordChar")));
			this.txtFGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtFGoodsCode.RightToLeft")));
			this.txtFGoodsCode.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtFGoodsCode.ScrollBars")));
			this.txtFGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("txtFGoodsCode.Size")));
			this.txtFGoodsCode.TabIndex = ((int)(resources.GetObject("txtFGoodsCode.TabIndex")));
			this.txtFGoodsCode.Text = resources.GetString("txtFGoodsCode.Text");
			this.txtFGoodsCode.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtFGoodsCode.TextAlign")));
			this.txtFGoodsCode.Visible = ((bool)(resources.GetObject("txtFGoodsCode.Visible")));
			this.txtFGoodsCode.WordWrap = ((bool)(resources.GetObject("txtFGoodsCode.WordWrap")));
			this.txtFGoodsCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtFGoodsCode_KeyDown);
			this.txtFGoodsCode.Validating += new System.ComponentModel.CancelEventHandler(this.txtFGoodsCode_Validating);
			// 
			// btnFGoodsCode
			// 
			this.btnFGoodsCode.AccessibleDescription = resources.GetString("btnFGoodsCode.AccessibleDescription");
			this.btnFGoodsCode.AccessibleName = resources.GetString("btnFGoodsCode.AccessibleName");
			this.btnFGoodsCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnFGoodsCode.Anchor")));
			this.btnFGoodsCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnFGoodsCode.BackgroundImage")));
			this.btnFGoodsCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnFGoodsCode.Dock")));
			this.btnFGoodsCode.Enabled = ((bool)(resources.GetObject("btnFGoodsCode.Enabled")));
			this.btnFGoodsCode.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnFGoodsCode.FlatStyle")));
			this.btnFGoodsCode.Font = ((System.Drawing.Font)(resources.GetObject("btnFGoodsCode.Font")));
			this.btnFGoodsCode.Image = ((System.Drawing.Image)(resources.GetObject("btnFGoodsCode.Image")));
			this.btnFGoodsCode.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnFGoodsCode.ImageAlign")));
			this.btnFGoodsCode.ImageIndex = ((int)(resources.GetObject("btnFGoodsCode.ImageIndex")));
			this.btnFGoodsCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnFGoodsCode.ImeMode")));
			this.btnFGoodsCode.Location = ((System.Drawing.Point)(resources.GetObject("btnFGoodsCode.Location")));
			this.btnFGoodsCode.Name = "btnFGoodsCode";
			this.btnFGoodsCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnFGoodsCode.RightToLeft")));
			this.btnFGoodsCode.Size = ((System.Drawing.Size)(resources.GetObject("btnFGoodsCode.Size")));
			this.btnFGoodsCode.TabIndex = ((int)(resources.GetObject("btnFGoodsCode.TabIndex")));
			this.btnFGoodsCode.Text = resources.GetString("btnFGoodsCode.Text");
			this.btnFGoodsCode.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnFGoodsCode.TextAlign")));
			this.btnFGoodsCode.Visible = ((bool)(resources.GetObject("btnFGoodsCode.Visible")));
			this.btnFGoodsCode.Click += new System.EventHandler(this.btnFGoodsCode_Click);
			// 
			// txtProductionLine
			// 
			this.txtProductionLine.AccessibleDescription = resources.GetString("txtProductionLine.AccessibleDescription");
			this.txtProductionLine.AccessibleName = resources.GetString("txtProductionLine.AccessibleName");
			this.txtProductionLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtProductionLine.Anchor")));
			this.txtProductionLine.AutoSize = ((bool)(resources.GetObject("txtProductionLine.AutoSize")));
			this.txtProductionLine.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtProductionLine.BackgroundImage")));
			this.txtProductionLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtProductionLine.Dock")));
			this.txtProductionLine.Enabled = ((bool)(resources.GetObject("txtProductionLine.Enabled")));
			this.txtProductionLine.Font = ((System.Drawing.Font)(resources.GetObject("txtProductionLine.Font")));
			this.txtProductionLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtProductionLine.ImeMode")));
			this.txtProductionLine.Location = ((System.Drawing.Point)(resources.GetObject("txtProductionLine.Location")));
			this.txtProductionLine.MaxLength = ((int)(resources.GetObject("txtProductionLine.MaxLength")));
			this.txtProductionLine.Multiline = ((bool)(resources.GetObject("txtProductionLine.Multiline")));
			this.txtProductionLine.Name = "txtProductionLine";
			this.txtProductionLine.PasswordChar = ((char)(resources.GetObject("txtProductionLine.PasswordChar")));
			this.txtProductionLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtProductionLine.RightToLeft")));
			this.txtProductionLine.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtProductionLine.ScrollBars")));
			this.txtProductionLine.Size = ((System.Drawing.Size)(resources.GetObject("txtProductionLine.Size")));
			this.txtProductionLine.TabIndex = ((int)(resources.GetObject("txtProductionLine.TabIndex")));
			this.txtProductionLine.Text = resources.GetString("txtProductionLine.Text");
			this.txtProductionLine.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtProductionLine.TextAlign")));
			this.txtProductionLine.Visible = ((bool)(resources.GetObject("txtProductionLine.Visible")));
			this.txtProductionLine.WordWrap = ((bool)(resources.GetObject("txtProductionLine.WordWrap")));
			this.txtProductionLine.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtProductionLine_KeyDown);
			this.txtProductionLine.Validating += new System.ComponentModel.CancelEventHandler(this.txtProductionLine_Validating);
			// 
			// btnProductionLine
			// 
			this.btnProductionLine.AccessibleDescription = resources.GetString("btnProductionLine.AccessibleDescription");
			this.btnProductionLine.AccessibleName = resources.GetString("btnProductionLine.AccessibleName");
			this.btnProductionLine.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnProductionLine.Anchor")));
			this.btnProductionLine.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnProductionLine.BackgroundImage")));
			this.btnProductionLine.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnProductionLine.Dock")));
			this.btnProductionLine.Enabled = ((bool)(resources.GetObject("btnProductionLine.Enabled")));
			this.btnProductionLine.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnProductionLine.FlatStyle")));
			this.btnProductionLine.Font = ((System.Drawing.Font)(resources.GetObject("btnProductionLine.Font")));
			this.btnProductionLine.Image = ((System.Drawing.Image)(resources.GetObject("btnProductionLine.Image")));
			this.btnProductionLine.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnProductionLine.ImageAlign")));
			this.btnProductionLine.ImageIndex = ((int)(resources.GetObject("btnProductionLine.ImageIndex")));
			this.btnProductionLine.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnProductionLine.ImeMode")));
			this.btnProductionLine.Location = ((System.Drawing.Point)(resources.GetObject("btnProductionLine.Location")));
			this.btnProductionLine.Name = "btnProductionLine";
			this.btnProductionLine.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnProductionLine.RightToLeft")));
			this.btnProductionLine.Size = ((System.Drawing.Size)(resources.GetObject("btnProductionLine.Size")));
			this.btnProductionLine.TabIndex = ((int)(resources.GetObject("btnProductionLine.TabIndex")));
			this.btnProductionLine.Text = resources.GetString("btnProductionLine.Text");
			this.btnProductionLine.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnProductionLine.TextAlign")));
			this.btnProductionLine.Visible = ((bool)(resources.GetObject("btnProductionLine.Visible")));
			this.btnProductionLine.Click += new System.EventHandler(this.btnProductionLine_Click);
			// 
			// dtmRequestDate
			// 
			this.dtmRequestDate.AcceptsEscape = ((bool)(resources.GetObject("dtmRequestDate.AcceptsEscape")));
			this.dtmRequestDate.AccessibleDescription = resources.GetString("dtmRequestDate.AccessibleDescription");
			this.dtmRequestDate.AccessibleName = resources.GetString("dtmRequestDate.AccessibleName");
			this.dtmRequestDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmRequestDate.Anchor")));
			this.dtmRequestDate.AutoSize = ((bool)(resources.GetObject("dtmRequestDate.AutoSize")));
			this.dtmRequestDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmRequestDate.BackgroundImage")));
			this.dtmRequestDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmRequestDate.BorderStyle")));
			// 
			// dtmRequestDate.Calendar
			// 
			this.dtmRequestDate.Calendar.AccessibleDescription = resources.GetString("dtmRequestDate.Calendar.AccessibleDescription");
			this.dtmRequestDate.Calendar.AccessibleName = resources.GetString("dtmRequestDate.Calendar.AccessibleName");
			this.dtmRequestDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmRequestDate.Calendar.AnnuallyBoldedDates")));
			this.dtmRequestDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmRequestDate.Calendar.BackgroundImage")));
			this.dtmRequestDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmRequestDate.Calendar.BoldedDates")));
			this.dtmRequestDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmRequestDate.Calendar.CalendarDimensions")));
			this.dtmRequestDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmRequestDate.Calendar.Enabled")));
			this.dtmRequestDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmRequestDate.Calendar.FirstDayOfWeek")));
			this.dtmRequestDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmRequestDate.Calendar.Font")));
			this.dtmRequestDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmRequestDate.Calendar.ImeMode")));
			this.dtmRequestDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmRequestDate.Calendar.MonthlyBoldedDates")));
			this.dtmRequestDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmRequestDate.Calendar.RightToLeft")));
			this.dtmRequestDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmRequestDate.Calendar.ShowClearButton")));
			this.dtmRequestDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmRequestDate.Calendar.ShowTodayButton")));
			this.dtmRequestDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmRequestDate.Calendar.ShowWeekNumbers")));
			this.dtmRequestDate.CaseSensitive = ((bool)(resources.GetObject("dtmRequestDate.CaseSensitive")));
			this.dtmRequestDate.Culture = ((int)(resources.GetObject("dtmRequestDate.Culture")));
			this.dtmRequestDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmRequestDate.CurrentTimeZone")));
			this.dtmRequestDate.CustomFormat = resources.GetString("dtmRequestDate.CustomFormat");
			this.dtmRequestDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmRequestDate.DaylightTimeAdjustment")));
			this.dtmRequestDate.DisplayFormat.CustomFormat = resources.GetString("dtmRequestDate.DisplayFormat.CustomFormat");
			this.dtmRequestDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmRequestDate.DisplayFormat.FormatType")));
			this.dtmRequestDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmRequestDate.DisplayFormat.Inherit")));
			this.dtmRequestDate.DisplayFormat.NullText = resources.GetString("dtmRequestDate.DisplayFormat.NullText");
			this.dtmRequestDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmRequestDate.DisplayFormat.TrimEnd")));
			this.dtmRequestDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmRequestDate.DisplayFormat.TrimStart")));
			this.dtmRequestDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmRequestDate.Dock")));
			this.dtmRequestDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmRequestDate.DropDownFormAlign")));
			this.dtmRequestDate.EditFormat.CustomFormat = resources.GetString("dtmRequestDate.EditFormat.CustomFormat");
			this.dtmRequestDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmRequestDate.EditFormat.FormatType")));
			this.dtmRequestDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmRequestDate.EditFormat.Inherit")));
			this.dtmRequestDate.EditFormat.NullText = resources.GetString("dtmRequestDate.EditFormat.NullText");
			this.dtmRequestDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmRequestDate.EditFormat.TrimEnd")));
			this.dtmRequestDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmRequestDate.EditFormat.TrimStart")));
			this.dtmRequestDate.EditMask = resources.GetString("dtmRequestDate.EditMask");
			this.dtmRequestDate.EmptyAsNull = ((bool)(resources.GetObject("dtmRequestDate.EmptyAsNull")));
			this.dtmRequestDate.Enabled = ((bool)(resources.GetObject("dtmRequestDate.Enabled")));
			this.dtmRequestDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmRequestDate.ErrorInfo.BeepOnError")));
			this.dtmRequestDate.ErrorInfo.ErrorMessage = resources.GetString("dtmRequestDate.ErrorInfo.ErrorMessage");
			this.dtmRequestDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmRequestDate.ErrorInfo.ErrorMessageCaption");
			this.dtmRequestDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmRequestDate.ErrorInfo.ShowErrorMessage")));
			this.dtmRequestDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmRequestDate.ErrorInfo.ValueOnError")));
			this.dtmRequestDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmRequestDate.Font")));
			this.dtmRequestDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmRequestDate.FormatType")));
			this.dtmRequestDate.GapHeight = ((int)(resources.GetObject("dtmRequestDate.GapHeight")));
			this.dtmRequestDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmRequestDate.GMTOffset")));
			this.dtmRequestDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmRequestDate.ImeMode")));
			this.dtmRequestDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmRequestDate.InitialSelection")));
			this.dtmRequestDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmRequestDate.Location")));
			this.dtmRequestDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmRequestDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmRequestDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmRequestDate.MaskInfo.CaseSensitive")));
			this.dtmRequestDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmRequestDate.MaskInfo.CopyWithLiterals")));
			this.dtmRequestDate.MaskInfo.EditMask = resources.GetString("dtmRequestDate.MaskInfo.EditMask");
			this.dtmRequestDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmRequestDate.MaskInfo.EmptyAsNull")));
			this.dtmRequestDate.MaskInfo.ErrorMessage = resources.GetString("dtmRequestDate.MaskInfo.ErrorMessage");
			this.dtmRequestDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmRequestDate.MaskInfo.Inherit")));
			this.dtmRequestDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmRequestDate.MaskInfo.PromptChar")));
			this.dtmRequestDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmRequestDate.MaskInfo.ShowLiterals")));
			this.dtmRequestDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmRequestDate.MaskInfo.StoredEmptyChar")));
			this.dtmRequestDate.MaxLength = ((int)(resources.GetObject("dtmRequestDate.MaxLength")));
			this.dtmRequestDate.Name = "dtmRequestDate";
			this.dtmRequestDate.NullText = resources.GetString("dtmRequestDate.NullText");
			this.dtmRequestDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmRequestDate.ParseInfo.CaseSensitive")));
			this.dtmRequestDate.ParseInfo.CustomFormat = resources.GetString("dtmRequestDate.ParseInfo.CustomFormat");
			this.dtmRequestDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmRequestDate.ParseInfo.DateTimeStyle")));
			this.dtmRequestDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmRequestDate.ParseInfo.EmptyAsNull")));
			this.dtmRequestDate.ParseInfo.ErrorMessage = resources.GetString("dtmRequestDate.ParseInfo.ErrorMessage");
			this.dtmRequestDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmRequestDate.ParseInfo.FormatType")));
			this.dtmRequestDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmRequestDate.ParseInfo.Inherit")));
			this.dtmRequestDate.ParseInfo.NullText = resources.GetString("dtmRequestDate.ParseInfo.NullText");
			this.dtmRequestDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmRequestDate.ParseInfo.TrimEnd")));
			this.dtmRequestDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmRequestDate.ParseInfo.TrimStart")));
			this.dtmRequestDate.PasswordChar = ((char)(resources.GetObject("dtmRequestDate.PasswordChar")));
			this.dtmRequestDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmRequestDate.PostValidation.CaseSensitive")));
			this.dtmRequestDate.PostValidation.ErrorMessage = resources.GetString("dtmRequestDate.PostValidation.ErrorMessage");
			this.dtmRequestDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmRequestDate.PostValidation.Inherit")));
			this.dtmRequestDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmRequestDate.PostValidation.Validation")));
			this.dtmRequestDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmRequestDate.PostValidation.Values")));
			this.dtmRequestDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmRequestDate.PostValidation.ValuesExcluded")));
			this.dtmRequestDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmRequestDate.PreValidation.CaseSensitive")));
			this.dtmRequestDate.PreValidation.ErrorMessage = resources.GetString("dtmRequestDate.PreValidation.ErrorMessage");
			this.dtmRequestDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmRequestDate.PreValidation.Inherit")));
			this.dtmRequestDate.PreValidation.ItemSeparator = resources.GetString("dtmRequestDate.PreValidation.ItemSeparator");
			this.dtmRequestDate.PreValidation.PatternString = resources.GetString("dtmRequestDate.PreValidation.PatternString");
			this.dtmRequestDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmRequestDate.PreValidation.RegexOptions")));
			this.dtmRequestDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmRequestDate.PreValidation.TrimEnd")));
			this.dtmRequestDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmRequestDate.PreValidation.TrimStart")));
			this.dtmRequestDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmRequestDate.PreValidation.Validation")));
			this.dtmRequestDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmRequestDate.RightToLeft")));
			this.dtmRequestDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmRequestDate.ShowFocusRectangle")));
			this.dtmRequestDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmRequestDate.Size")));
			this.dtmRequestDate.TabIndex = ((int)(resources.GetObject("dtmRequestDate.TabIndex")));
			this.dtmRequestDate.Tag = ((object)(resources.GetObject("dtmRequestDate.Tag")));
			this.dtmRequestDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmRequestDate.TextAlign")));
			this.dtmRequestDate.TrimEnd = ((bool)(resources.GetObject("dtmRequestDate.TrimEnd")));
			this.dtmRequestDate.TrimStart = ((bool)(resources.GetObject("dtmRequestDate.TrimStart")));
			this.dtmRequestDate.UserCultureOverride = ((bool)(resources.GetObject("dtmRequestDate.UserCultureOverride")));
			this.dtmRequestDate.Value = ((object)(resources.GetObject("dtmRequestDate.Value")));
			this.dtmRequestDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmRequestDate.VerticalAlign")));
			this.dtmRequestDate.Visible = ((bool)(resources.GetObject("dtmRequestDate.Visible")));
			this.dtmRequestDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmRequestDate.VisibleButtons")));
			// 
			// btnApproved
			// 
			this.btnApproved.AccessibleDescription = resources.GetString("btnApproved.AccessibleDescription");
			this.btnApproved.AccessibleName = resources.GetString("btnApproved.AccessibleName");
			this.btnApproved.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnApproved.Anchor")));
			this.btnApproved.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnApproved.BackgroundImage")));
			this.btnApproved.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnApproved.Dock")));
			this.btnApproved.Enabled = ((bool)(resources.GetObject("btnApproved.Enabled")));
			this.btnApproved.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnApproved.FlatStyle")));
			this.btnApproved.Font = ((System.Drawing.Font)(resources.GetObject("btnApproved.Font")));
			this.btnApproved.Image = ((System.Drawing.Image)(resources.GetObject("btnApproved.Image")));
			this.btnApproved.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnApproved.ImageAlign")));
			this.btnApproved.ImageIndex = ((int)(resources.GetObject("btnApproved.ImageIndex")));
			this.btnApproved.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnApproved.ImeMode")));
			this.btnApproved.Location = ((System.Drawing.Point)(resources.GetObject("btnApproved.Location")));
			this.btnApproved.Name = "btnApproved";
			this.btnApproved.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnApproved.RightToLeft")));
			this.btnApproved.Size = ((System.Drawing.Size)(resources.GetObject("btnApproved.Size")));
			this.btnApproved.TabIndex = ((int)(resources.GetObject("btnApproved.TabIndex")));
			this.btnApproved.Text = resources.GetString("btnApproved.Text");
			this.btnApproved.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnApproved.TextAlign")));
			this.btnApproved.Visible = ((bool)(resources.GetObject("btnApproved.Visible")));
			this.btnApproved.Click += new System.EventHandler(this.btnApproved_Click);
			// 
			// AdditionSalary
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.txtProductionLine);
			this.Controls.Add(this.txtFGoodsCode);
			this.Controls.Add(this.txtTransNo);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.btnProductionLine);
			this.Controls.Add(this.btnFGoodsCode);
			this.Controls.Add(this.lblProductionLine);
			this.Controls.Add(this.lblFGoodsCode);
			this.Controls.Add(this.dtmPostDate);
			this.Controls.Add(this.btnDelete);
			this.Controls.Add(this.btnEdit);
			this.Controls.Add(this.btnPrint);
			this.Controls.Add(this.btnTransNo);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.btnAdd);
			this.Controls.Add(this.cboCCN);
			this.Controls.Add(this.lblTransNo);
			this.Controls.Add(this.lblPostDate);
			this.Controls.Add(this.dtmRequestDate);
			this.Controls.Add(this.btnApproved);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "AdditionSalary";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Closing += new System.ComponentModel.CancelEventHandler(this.AdditionSalary_Closing);
			this.Load += new System.EventHandler(this.AdditionSalary_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmPostDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmRequestDate)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		#region private methods
		private void SwitchFormMode()
		{
			switch (mFormMode)
			{
				case EnumAction.Add:
					dtmPostDate.Enabled = true;
					txtTransNo.ReadOnly = true;
					btnTransNo.Enabled = false;
					txtProductionLine.ReadOnly = false;
					btnProductionLine.Enabled = true;
					txtFGoodsCode.ReadOnly = false;
					btnFGoodsCode.Enabled = true;
					btnAdd.Enabled = false;
					btnSave.Enabled = true;
					btnEdit.Enabled = false;
					btnDelete.Enabled = false;
					btnApproved.Enabled = false;
					btnPrint.Enabled = false;
					dgrdData.AllowDelete = true;
					dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD].Locked = false;
					dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD].Button = true;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REQUESTDATE_FLD].Locked = false;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD].Locked = false;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REASON_FLD].Locked = false;
					break;
				case EnumAction.Edit:
					txtTransNo.ReadOnly = true;
					btnTransNo.Enabled = false;
					dtmPostDate.Enabled = true;
					txtProductionLine.ReadOnly = true;
					btnProductionLine.Enabled = false;
					txtFGoodsCode.ReadOnly = true;
					btnFGoodsCode.Enabled = false;
					dgrdData.AllowDelete = true;
					btnAdd.Enabled = false;
					btnSave.Enabled = true;
					btnEdit.Enabled = false;
					btnDelete.Enabled = false;
					btnApproved.Enabled = false;
					btnPrint.Enabled = false;
					dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD].Locked = false;
					dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD].Button = true;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REQUESTDATE_FLD].Locked = false;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD].Locked = false;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REASON_FLD].Locked = false;
					break;
				case EnumAction.Copy:
					btnAdd.Enabled = false;
					btnSave.Enabled = true;
					btnEdit.Enabled = false;
					btnDelete.Enabled = false;
					btnApproved.Enabled = false;
					dgrdData.AllowDelete = false;
					foreach(C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
						c1Col.Locked = true;
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD].Locked = false;
					break;
				default:
					dtmPostDate.Enabled = false;
					txtTransNo.ReadOnly = false;
					btnTransNo.Enabled = true;
					txtProductionLine.ReadOnly = true;
					btnProductionLine.Enabled = false;
					txtFGoodsCode.ReadOnly = true;
					btnFGoodsCode.Enabled = false;
					btnAdd.Enabled = true;
					btnSave.Enabled = false;
					btnPrint.Enabled = true;
					if (txtTransNo.Tag != null)
					{
						btnEdit.Enabled = true;
						btnApproved.Enabled = true;
						if (blnIsCompleted || blnIsApproved)
							btnDelete.Enabled = false;
						else
							btnDelete.Enabled = true;
					}
					else
					{
						btnEdit.Enabled = false;
						btnApproved.Enabled = false;
						btnDelete.Enabled = false;
					}
					dgrdData.AllowDelete = false;
					break;
			}
		}
		/// <summary>
		/// Clear any data in form
		/// </summary>
		private void ClearData()
		{
			txtTransNo.Text = string.Empty;
			txtTransNo.Tag = null;

			txtFGoodsCode.Text = string.Empty;
			txtFGoodsCode.Tag = null;
			
			txtProductionLine.Text = string.Empty;
			txtProductionLine.Tag = null;

			if (dstData != null && dstData.Tables.Count > 0)
			{
				if (mFormMode == EnumAction.Edit)
				{
					for (int i = dstData.Tables[0].Rows.Count - 1; i >= 0; i--)
						dstData.Tables[0].Rows[i].Delete();
				}
				else
					dstData.Tables[0].Clear();
			}
		}
		/// <summary>
		/// Loading data from master ID
		/// </summary>
		/// <param name="pintMasterID"></param>
		private void LoadDataFromMaster(int pintMasterID)
		{
			// loading master
			PAY_AdditionSalaryMasterVO voMaster = (PAY_AdditionSalaryMasterVO)boAddition.GetObjectVO(pintMasterID, string.Empty);
			dtmPostDate.Value = voMaster.PostDate;
			txtTransNo.Text = voMaster.TransNo;
			txtTransNo.Tag = voMaster.AdditionSalaryMasterID;
			DataRowView drwResult = FormControlComponents.OpenSearchForm(SO_SaleOrderDetailTable.TABLE_NAME, SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD, voMaster.SaleOrderDetailID.ToString(), null, false);
			txtFGoodsCode.Text = drwResult[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
			txtFGoodsCode.Tag = voMaster.SaleOrderDetailID;
			drwResult = FormControlComponents.OpenSearchForm(PRO_ProductionLineTable.TABLE_NAME, PRO_ProductionLineTable.PRODUCTIONLINEID_FLD, voMaster.ProductionLineID.ToString(), null, false);
			txtProductionLine.Text = drwResult[PRO_ProductionLineTable.CODE_FLD].ToString();
			txtProductionLine.Tag = voMaster.ProductionLineID;

			// loading detail
			dstData = boAddition.List(pintMasterID);
			dstData.Tables[0].Columns[PAY_AdditionSalaryDetailTable.ADDITIONSALARYMASTERID_FLD].DefaultValue = pintMasterID;
			dtbEstimateData = boAddition.GetEstimateData(Convert.ToInt32(txtFGoodsCode.Tag));
			blnIsCompleted = Convert.ToBoolean(dtbEstimateData.Rows[0][PAY_EstimateMasterTable.COMPLETED_FLD]);
			LoadDataToGrid();
			SwitchFormMode();
		}

		/// <summary>
		/// Loading data to grid and restore grid layout
		/// </summary>
		private void LoadDataToGrid()
		{
			dgrdData.DataSource = dstData.Tables[0];
			FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);

			foreach (C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
			{
				c1Col.Locked = true;
				c1Col.Button = false;
			}

			foreach (DataRow drowData in dstData.Tables[0].Rows)
			{
				try
				{
					if (Convert.ToDecimal(drowData[PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD]) > 0)
					{
						blnIsApproved = true;
						break;
					}
					else
						blnIsApproved = false;
				}
				catch
				{
					blnIsApproved = false;
				}
			}

			dgrdData.Columns[PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD].NumberFormat = Constants.DECIMAL_LONG_FORMAT;
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.REQUESTDATE_FLD].Editor = dtmRequestDate;
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.REQUESTDATE_FLD].NumberFormat = Constants.DATETIME_FORMAT;
			dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REQUESTDATE_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
		}

		/// <summary>
		/// Fill goods code
		/// </summary>
		/// <param name="pdrowData"></param>
		private void FillFGoodsCode(DataRow pdrowData)
		{
			txtFGoodsCode.Text = pdrowData[SO_SaleOrderDetailTable.FGOODSCODE_FLD].ToString();
			txtFGoodsCode.Tag = Convert.ToInt32(pdrowData[SO_SaleOrderDetailTable.SALEORDERDETAILID_FLD]);
			dtbEstimateData = boAddition.GetEstimateData(Convert.ToInt32(txtFGoodsCode.Tag));
			blnIsCompleted = Convert.ToBoolean(dtbEstimateData.Rows[0][PAY_EstimateMasterTable.COMPLETED_FLD]);
			if (txtProductionLine.Tag != null)
			{
				// trans no
				txtTransNo.Text = boUtils.GetTransNoByFGoodsCode(txtFGoodsCode.Text, txtProductionLine.Text, PAY_AdditionSalaryMasterTable.TRANSNO_FLD, PAY_AdditionSalaryMasterTable.TABLE_NAME);
			} 
		}
		/// <summary>
		/// Fill production line
		/// </summary>
		/// <param name="pdrowData"></param>
		private void FillProductionLine(DataRow pdrowData)
		{
			txtProductionLine.Text = pdrowData[PRO_ProductionLineTable.CODE_FLD].ToString();
			txtProductionLine.Tag = Convert.ToInt32(pdrowData[PRO_ProductionLineTable.PRODUCTIONLINEID_FLD]);
			if (txtFGoodsCode.Tag != null)
			{
				// trans no
				txtTransNo.Text = boUtils.GetTransNoByFGoodsCode(txtFGoodsCode.Text, txtProductionLine.Text, PAY_AdditionSalaryMasterTable.TRANSNO_FLD, PAY_AdditionSalaryMasterTable.TABLE_NAME);
			} 
		}
		private void FillItemDataToGrid(DataRow pdrowData)
		{
			if (pdrowData != null)
			{
				dgrdData.Columns[ITM_ProductTable.CODE_FLD].Value = pdrowData[ITM_ProductTable.CODE_FLD];
				dgrdData.Columns[PAY_AdditionSalaryDetailTable.PRODUCTID_FLD].Value = pdrowData[ITM_ProductTable.PRODUCTID_FLD];
				dgrdData.Columns[PAY_AdditionSalaryDetailTable.LINE_FLD].Value = dgrdData.Row + 1;
			}
			else
			{
				dgrdData.Columns[ITM_ProductTable.CODE_FLD].Value = string.Empty;
				dgrdData.Columns[PAY_AdditionSalaryDetailTable.PRODUCTID_FLD].Value = null;
				dgrdData.Columns[PAY_AdditionSalaryDetailTable.LINE_FLD].Value = null;
			}
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.REQUESTDATE_FLD].Value = DBNull.Value;
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD].Value = string.Empty;
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD].Value = string.Empty;
			dgrdData.Columns[PAY_AdditionSalaryDetailTable.REASON_FLD].Value = string.Empty;
		}
		private bool ValidateData()
		{
			#region check mandatory

			if (dtmPostDate.Value == DBNull.Value)
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
				dtmPostDate.Focus();
				return false;
			}
			if (txtTransNo.Text.Trim().Length == 0)
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
				txtTransNo.Focus();
				return false;
			}
			if (txtProductionLine.Text.Trim().Length == 0)
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
				txtProductionLine.Focus();
				return false;
			}
			if (txtFGoodsCode.Text.Trim().Length == 0)
			{
				PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
				txtFGoodsCode.Focus();
				return false;
			}
				
			#endregion

			#region check grid
			for (int i = 0; i < dgrdData.RowCount; i++)
			{
				// check product
				if (dgrdData[i, PAY_AdditionSalaryDetailTable.PRODUCTID_FLD].ToString() == string.Empty ||
					dgrdData[i, PAY_AdditionSalaryDetailTable.PRODUCTID_FLD] == null)
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Error);
					dgrdData.Row = i;
					dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD]);
					dgrdData.Focus();
					return false;
				}
				try
				{
					Convert.ToDecimal(dgrdData[i, PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD]);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_INVALID_NUMERIC, MessageBoxIcon.Error);
					dgrdData.Row = i;
					dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD]);
					dgrdData.Focus();
					return false;
				}
			}
			#endregion
			return true;
		}
		#endregion

		private void AdditionSalary_Load(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".AdditionSalary_Load()";
			try
			{
				Security objSecurity = new Security();
				this.Name = THIS;
				if (objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW, MessageBoxIcon.Warning);
					return;
				}
				
				//get grid layout
				dtbGridLayOut = FormControlComponents.StoreGridLayout(dgrdData);

				dstData = boAddition.List(0);
				LoadDataToGrid();

				mFormMode = EnumAction.Default;
				SwitchFormMode();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void AdditionSalary_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".AdditionSalary_Closing()";
			try
			{
				
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtTransNo_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtTransNo_Validating()";
			try
			{
				if (txtTransNo.Modified && btnTransNo.Enabled)
				{
					if (txtTransNo.Text.Trim().Equals(string.Empty))
					{
						ClearData();
						return;
					}
					else
					{
						DataRowView drvResult = FormControlComponents.OpenSearchForm(PAY_AdditionSalaryMasterTable.TABLE_NAME, PAY_AdditionSalaryMasterTable.TRANSNO_FLD, txtTransNo.Text.Trim(), null, false);
						if (drvResult != null)
						{
							txtTransNo.Text = drvResult[PAY_AdditionSalaryMasterTable.TRANSNO_FLD].ToString();
							txtTransNo.Tag = Convert.ToInt32(drvResult[PAY_AdditionSalaryMasterTable.ADDITIONSALARYMASTERID_FLD]);
							LoadDataFromMaster(Convert.ToInt32(drvResult[PAY_AdditionSalaryMasterTable.ADDITIONSALARYMASTERID_FLD]));
						}
						else
							e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtTransNo_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtTransNo_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnTransNo_Click(null, null);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnTransNo_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnTransNo_Click()";
			try
			{
				DataRowView drvResult = FormControlComponents.OpenSearchForm(PAY_AdditionSalaryMasterTable.TABLE_NAME, PAY_AdditionSalaryMasterTable.TRANSNO_FLD, txtTransNo.Text.Trim(), null, true);
				if (drvResult != null)
				{
					txtTransNo.Text = drvResult[PAY_AdditionSalaryMasterTable.TRANSNO_FLD].ToString();
					txtTransNo.Tag = Convert.ToInt32(drvResult[PAY_AdditionSalaryMasterTable.ADDITIONSALARYMASTERID_FLD]);
					LoadDataFromMaster(Convert.ToInt32(drvResult[PAY_AdditionSalaryMasterTable.ADDITIONSALARYMASTERID_FLD]));
				}
				else
					txtTransNo.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtFGoodsCode_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtFGoodsCode_Validating()";
			try
			{
				if (txtFGoodsCode.Modified)
				{
					if (txtFGoodsCode.Text.Trim().Equals(string.Empty))
					{
						txtFGoodsCode.Tag = null;
						if (dstData != null)
							dstData.Tables[0].Clear();
						return;
					}
					else
					{
						DataRowView drvResult = FormControlComponents.OpenSearchForm("v_SaleForRequest", SO_SaleOrderDetailTable.FGOODSCODE_FLD, txtFGoodsCode.Text, null, false);
						if (drvResult != null)
							FillFGoodsCode(drvResult.Row);
						else
							e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtFGoodsCode_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtFGoodsCode_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnFGoodsCode_Click(null, null);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnFGoodsCode_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnFGoodsCode_Click()";
			try
			{
				DataRowView drvResult = FormControlComponents.OpenSearchForm("v_SaleForRequest", SO_SaleOrderDetailTable.FGOODSCODE_FLD, txtFGoodsCode.Text, null, true);
				if (drvResult != null)
					FillFGoodsCode(drvResult.Row);
				else
					txtFGoodsCode.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtProductionLine_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtProductionLine_Validating()";
			try
			{
				if (txtProductionLine.Modified)
				{
					if (txtProductionLine.Text.Trim().Equals(string.Empty))
					{
						txtProductionLine.Tag = null;
						return;
					}
					else
					{
						DataRowView drvResult = FormControlComponents.OpenSearchForm(PRO_ProductionLineTable.TABLE_NAME, PRO_ProductionLineTable.CODE_FLD, txtProductionLine.Text.Trim(), null, false);
						if (drvResult != null)
							FillProductionLine(drvResult.Row);
						else
							e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void txtProductionLine_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtProductionLine_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnProductionLine_Click(null, null);
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnProductionLine_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnProductionLine_Click()";
			try
			{
				DataRowView drvResult = FormControlComponents.OpenSearchForm(PRO_ProductionLineTable.TABLE_NAME, PRO_ProductionLineTable.CODE_FLD, txtProductionLine.Text.Trim(), null, true);
				if (drvResult != null)
					FillProductionLine(drvResult.Row);
				else
					txtProductionLine.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnAdd_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnAdd_Click()";
			try
			{
				mFormMode = EnumAction.Add;
				SwitchFormMode();
				ClearData();
				dtmPostDate.Value = new UtilsBO().GetDBDate();
				txtTransNo.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnSave_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try
			{
				if (!dgrdData.EditActive && ValidateData())
				{
					PAY_AdditionSalaryMasterVO voMaster = new PAY_AdditionSalaryMasterVO();
					voMaster.TransNo = txtTransNo.Text.Trim();
					voMaster.PostDate = Convert.ToDateTime(dtmPostDate.Value);
					voMaster.SaleOrderDetailID = Convert.ToInt32(txtFGoodsCode.Tag);
					voMaster.ProductionLineID = Convert.ToInt32(txtProductionLine.Tag);
					switch (mFormMode)
					{
						case EnumAction.Add:
							txtTransNo.Tag = voMaster.AdditionSalaryMasterID = boAddition.AddAndReturnID(voMaster, dstData);
							break;
						default:
							voMaster.AdditionSalaryMasterID = Convert.ToInt32(txtTransNo.Tag);
							boAddition.Update(voMaster, dstData);
							break;
					}

					PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
					mFormMode = EnumAction.Default;
					//reload grid form database
					dstData = new DataSet();
					dstData = boAddition.List(voMaster.AdditionSalaryMasterID);
					LoadDataToGrid();
					SwitchFormMode();
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnEdit_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnEdit_Click()";
			try
			{
				// assign default value for Master ID
				dstData.Tables[0].Columns[PAY_AdditionSalaryDetailTable.ADDITIONSALARYMASTERID_FLD].DefaultValue = txtTransNo.Tag;
				mFormMode = EnumAction.Edit;
				SwitchFormMode();
				txtTransNo.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnDelete_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnDelete_Click()";
			try
			{
				DialogResult dlgResult = PCSMessageBox.Show(ErrorCode.MESSAGE_DELETE_RECORD, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);
				if (dlgResult == DialogResult.Yes)
				{
					boAddition.Delete(Convert.ToInt32(txtTransNo.Tag));

					PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
					mFormMode = EnumAction.Default;
					ClearData();
					SwitchFormMode();
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnApproved_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnApproved_Click()";
			try
			{
				mFormMode = EnumAction.Copy;
				SwitchFormMode();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}
		private void btnPrint_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnPrint_Click()";
			try
			{
				
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void dgrdData_BeforeColUpdate(object sender, C1.Win.C1TrueDBGrid.BeforeColUpdateEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_BeforeColUpdate()";
			try
			{
				Hashtable htbCondition = new Hashtable();
				string strColumnName = e.Column.DataColumn.DataField;
				DataRowView drwResult = null;
				switch (strColumnName)
				{
					case ITM_ProductTable.CODE_FLD:

						if (txtProductionLine.Text.Length == 0)
						{
							PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
							txtProductionLine.Focus();
							return;
						}
						if (txtFGoodsCode.Text.Length == 0)
						{
							PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
							txtFGoodsCode.Focus();
							return;
						}
						htbCondition.Add(PAY_AdditionSalaryMasterTable.SALEORDERDETAILID_FLD, txtFGoodsCode.Tag);
						htbCondition.Add(PAY_AdditionSalaryMasterTable.PRODUCTIONLINEID_FLD, txtProductionLine.Tag);
						
						if (dgrdData.Columns[e.Column.DataColumn.DataField].Text.Trim() != string.Empty)
						{
							drwResult = FormControlComponents.OpenSearchForm(PRODUCT_VIEW, ITM_ProductTable.CODE_FLD, dgrdData.Columns[e.Column.DataColumn.DataField].Value.ToString().Trim(), htbCondition, false);
							if (drwResult != null)
								e.Column.DataColumn.Tag = drwResult.Row;
							else
								e.Cancel = true;
						}
						else
							e.Column.DataColumn.Tag = null;
						break;
					case PAY_AdditionSalaryDetailTable.REQUESTAMOUNT_FLD:
						try
						{
							Convert.ToDecimal(e.Column.DataColumn.Value);
						}
						catch
						{
							PCSMessageBox.Show(ErrorCode.MESSAGE_INVALID_NUMERIC, MessageBoxIcon.Warning);
							e.Cancel = true;
						}
						break;
					case PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD:
						if (e.Column.DataColumn.Value.ToString() == string.Empty) return;
						try
						{
							Convert.ToDecimal(e.Column.DataColumn.Value);
						}
						catch
						{
							PCSMessageBox.Show(ErrorCode.MESSAGE_INVALID_NUMERIC, MessageBoxIcon.Warning);
							e.Cancel = true;
						}
						break;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_AfterColUpdate(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColUpdate()";
			try
			{
				DataRow drwResult = (DataRow) e.Column.DataColumn.Tag;
				if (e.Column.DataColumn.DataField == ITM_ProductTable.CODE_FLD)
				{
					dgrdData.EditActive = true;
					FillItemDataToGrid(drwResult);
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4 && dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD].Button)
					dgrdData_ButtonClick(null, null);
				else
				{
					if (e.KeyCode == Keys.Delete && dgrdData.RowCount > 0 
						&& btnSave.Enabled)
					{
						bool blnAllowDelete = true;
						int intRowCount = dgrdData.SelectedRows.Count;
						for (int i = 0; i < intRowCount; i++)
						{
							try
							{
								if (Convert.ToDecimal(dgrdData[dgrdData.SelectedRows[i], PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD]) > 0)
								{
									blnAllowDelete = false;
									break;
								}
							}
							catch{}
						}
						if (blnAllowDelete)
							FormControlComponents.DeleteMultiRowsOnTrueDBGrid(dgrdData);
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_ButtonClick(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_ButtonClick()";
			try
			{
				if (!btnSave.Enabled) return;
				DataRowView drwResult = null;
				Hashtable htbCondition= new Hashtable();
				if (dgrdData.Columns[dgrdData.Col].DataField == ITM_ProductTable.CODE_FLD)
				{
					if (txtProductionLine.Text.Length == 0)
					{
						PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
						txtProductionLine.Focus();
						return;
					}
					if (txtFGoodsCode.Text.Length == 0)
					{
						PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID, MessageBoxIcon.Warning);
						txtFGoodsCode.Focus();
						return;
					}
					htbCondition.Add(PAY_AdditionSalaryMasterTable.SALEORDERDETAILID_FLD, txtFGoodsCode.Tag);
					htbCondition.Add(PAY_AdditionSalaryMasterTable.PRODUCTIONLINEID_FLD, txtProductionLine.Tag);
					if (dgrdData.AddNewMode == AddNewModeEnum.AddNewCurrent)
						drwResult = FormControlComponents.OpenSearchForm(PRODUCT_VIEW, ITM_ProductTable.CODE_FLD, dgrdData[dgrdData.Row, ITM_ProductTable.CODE_FLD].ToString(), htbCondition, true);
					else
						drwResult = FormControlComponents.OpenSearchForm(PRODUCT_VIEW, ITM_ProductTable.CODE_FLD, dgrdData.Columns[ITM_ProductTable.CODE_FLD].Value.ToString().Trim(), htbCondition, true);
					if (drwResult != null)
					{
						dgrdData.EditActive = true;
						FillItemDataToGrid(drwResult.Row);
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_RowColChange(object sender, C1.Win.C1TrueDBGrid.RowColChangeEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_RowColChange()";
			try
			{
				// check if user select different row
				if (mFormMode == EnumAction.Edit && e.LastRow != dgrdData.Row)
				{
					decimal decApprovalAmount = 0;
					try
					{
						decApprovalAmount = Convert.ToDecimal(dgrdData[dgrdData.Row, PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD]);
					}
					catch{}
					if (decApprovalAmount == 0)
					{
						// allow user to edit request amount
						foreach (C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
						{
							c1Col.Locked = false;
							c1Col.Button = false;
						}
						dgrdData.Splits[0].DisplayColumns[ITM_ProductTable.CODE_FLD].Button = true;
					}
					else
					{
						// allow user to edit request amount
						foreach (C1DisplayColumn c1Col in dgrdData.Splits[0].DisplayColumns)
						{
							c1Col.Locked = true;
							c1Col.Button = false;
						}
					}
					dgrdData.Splits[0].DisplayColumns[PAY_AdditionSalaryDetailTable.LINE_FLD].Locked = true;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_BeforeDelete(object sender, C1.Win.C1TrueDBGrid.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_BeforeDelete()";
			try
			{
				if (dgrdData[dgrdData.Row, ITM_ProductTable.CODE_FLD].ToString() != string.Empty)
				{
					if (Convert.ToDecimal(dgrdData[dgrdData.Row, PAY_AdditionSalaryDetailTable.APPROVALAMOUNT_FLD]) > 0)
					{
						//throw error message
						PCSMessageBox.Show(ErrorCode.MESSAGE_WO_CANNOT_DELWOLINE, MessageBoxIcon.Information);
						e.Cancel = true;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}

		private void dgrdData_AfterDelete(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterDelete()";
			try
			{
				for (int i = 0; i < dgrdData.RowCount; i++)
				{
					if (dgrdData[i, PAY_AdditionSalaryDetailTable.PRODUCTID_FLD].ToString() != string.Empty)
						dgrdData[i, PAY_AdditionSalaryDetailTable.LINE_FLD] = i+1;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION);
				}
			}
		}
	}
}
